﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

namespace CodeSHARPer.Model
{
    public class OpenedFile
    {
        string pathFileName;
        public string PathFileName
        {
            get { return pathFileName; }
            set
            {
                if (File.Exists(value))
                {
                    pathFileName = value;
                    FileInfo f = new FileInfo(pathFileName);
                    this.FileName = f.Name;
                }
            }
        }

        public string FileName { get; set; }
    }
}
